home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / slock / slokutil.hpp < prev    next >
C/C++ Source or Header  |  1998-09-28  |  1KB  |  36 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'SlokUtil.pas' rev: 3.00
  6.  
  7. #ifndef SlokUtilHPP
  8. #define SlokUtilHPP
  9. #include <Classes.hpp>
  10. #include <SysInit.hpp>
  11. #include <System.hpp>
  12.  
  13. //-- user supplied -----------------------------------------------------------
  14.  
  15. namespace Slokutil
  16. {
  17. //-- type declarations -------------------------------------------------------
  18. typedef Byte TBuffer[256];
  19.  
  20. //-- var, const, procedure ---------------------------------------------------
  21. #define BUFFERLENGTH (Word)(256)
  22. #define UNLOCK_LENGTH (Byte)(10)
  23. extern PACKAGE void __fastcall EncryptBuffer(System::AnsiString Key, Byte * Buffer);
  24. extern PACKAGE void __fastcall DecryptBuffer(System::AnsiString Key, Byte * Buffer);
  25. extern PACKAGE System::AnsiString __fastcall GetChallenge(System::AnsiString InputString, int Extensions
  26.     );
  27. extern PACKAGE System::AnsiString __fastcall GetUnlockString(System::AnsiString ChallengeString, System::AnsiString 
  28.     PrivateKey, int Extension);
  29.  
  30. }    /* namespace Slokutil */
  31. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  32. using namespace Slokutil;
  33. #endif
  34. //-- end unit ----------------------------------------------------------------
  35. #endif    // SlokUtil
  36.